package ar.edu.unlp.info.tesis.database;

import java.util.List;

import org.hibernate.criterion.Criterion;

import ar.edu.unlp.info.tesis.domain.Entidad;


public interface GenericRepository
{	
	public void save(Object entity);
	public void update(Object entity);
	public void remove(Object entity);
	public Entidad getById(long key);
	public List getList();
	public List findByCriteria(Criterion... crit);
	public Entidad findByProperty(String property, Object value);
}